<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2017/2/27
 * Time: 13:31
 */

namespace Home\Model;


use Think\Model;

class ActModel extends Model
{
    protected $pk = 'act_id';
    protected $table = 'act';

    public function act($text){
        $data = [
            'act_time'=>time(),
            'act_user'=>$_SESSION['admin']['user'],
            'act_active'=>$text,
        ];
        $this->add($data);
    }
}